export default ({ isM }) => {
  return [
    {
      dataIndex: 'a',
      width: '10%',
      ellipsis: true,
      slots: { title: 'customTitle' },
      scopedSlots: { customRender: 'a' },
    },
    {
      title: '测试b',
      dataIndex: 'b',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '测试c',
      dataIndex: 'c',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '测试d',
      dataIndex: 'd',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '测试e',
      dataIndex: 'e',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '测试f',
      dataIndex: 'f',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '测试g',
      dataIndex: 'g',
      width: '10%',
      ellipsis: true,
    },
    {
      title: isM ? '测试m' : '测试n',
      dataIndex: isM ? 'm' : 'n',
      width: '10%',
      ellipsis: true,
    },
    {
      title: '操作',
      key: 'action',
      scopedSlots: { customRender: 'action' },
      width: '5%',
    },
  ]
} 